package com.xjm.ips.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class Employeeec {
    private Integer id;

    private Employee employee;

    private RewardOrPenalty rewardOrPenalty;


    //处理返回日期的格式
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "Asia/Shanghai")
    private Date ecDate;

    private Integer late;

    private Integer takeLeave;

    private String remark;


    @Override
    public String toString() {
        return "Employeeec{" +
                "id=" + id +
                ", employee=" + employee +
                ", rewardOrPenalty=" + rewardOrPenalty +
                ", ecDate=" + ecDate +
                ", remark='" + remark + '\'' +
                '}';
    }

    public Date getEcDate() {
        return ecDate;
    }

    public void setEcDate(Date ecDate) {
        this.ecDate = ecDate;
    }

    public Employee getEmployee() {
        return employee;
    }

    public void setEmployee(Employee employee) {
        this.employee = employee;
    }

    public RewardOrPenalty getRewardOrPenalty() {
        return rewardOrPenalty;
    }

    public void setRewardOrPenalty(RewardOrPenalty rewardOrPenalty) {
        this.rewardOrPenalty = rewardOrPenalty;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getLate() {
        return late;
    }

    public void setLate(Integer late) {
        this.late = late;
    }

    public Integer getTakeLeave() {
        return takeLeave;
    }

    public void setTakeLeave(Integer takeLeave) {
        this.takeLeave = takeLeave;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }
}